<!-- 此页面作废 -->
<template>
	<view>
		<page-head :title="'视频讲解'" :headtype="2"></page-head>
		<view class="explainitem flex marginAuto" 
		v-for="(item,index) in datas" :key="index"
		@click="apifun.navigate('/pages/driving/explainxq','id=1')">
			<view class="explainitemimg">
				<image :src="apifun.serveimg+'hgoods.png'" mode=""></image>
			</view>
			<view class="explainitemmsg">
				<view class="explainitemmsg-name ellipsis01">驾驶证的申领和限制条件</view>
				<view class="explainitemmsg-time">3分6秒</view>
				<!-- <view class="explainitemmsg-status" style="background: #FFEDED;color:#FC2A2A;">已学习</view> -->
				<view class="explainitemmsg-status" style="background:#DBEBFF;color:#0089FB;">已学习</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				apifun:this.apifun,
				page:1,
				datas:[]
			};
		},
		onLoad() {
			this.initData();
		},
		methods: {
			initData(){
				
			}
		},
		onPullDownRefresh() {
			this.page = 1;
			this.datas = [];
			this.initData();
			uni.stopPullDownRefresh();
		},
		onReachBottom() {
			this.page++;
			this.initData()
		},
	};
</script>

<style scoped lang="scss">
	.explainitem{
		width: 670rpx;
		padding: 10rpx;
		background: #fff;
		border-radius: 20rpx;
		margin-bottom: 20rpx;
		.explainitemimg{
			width: 230rpx;
			height: 180rpx;
			image{
				width: 230rpx;
				height: 180rpx;
				border-radius: 10rpx;
			}
		}
		.explainitemmsg{
			width: 70%;
			margin-left: 18rpx;
			.explainitemmsg-name{
				color: #222222;
				font-size: 28rpx;
				margin-top: 10rpx;
			}
			.explainitemmsg-time{
				font-size: 24rpx;
				color: #666666;
				padding: 18rpx 0;
			}
			.explainitemmsg-status{
				display: inline-block;
				padding: 10rpx;
				border-radius: 10rpx;
				font-size:24rpx;
			}
		}
	}
</style>